package cn.gok.mybatisplus.service.Impl;

import cn.gok.mybatisplus.dao.StudentDao;
import cn.gok.mybatisplus.entity.Student;
import cn.gok.mybatisplus.service.StudentService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName StudentServiceImpl
 * @Description TODO
 * @Author HP
 * @Date 17:03 2022/7/21
 * @Version 1.0
 **/
@Service
public class StudentServiceImpl extends ServiceImpl<StudentDao, Student> implements StudentService {
    @Autowired
    StudentDao studentDao;

    @Override
    public Student selectMyOne(Long id){
        QueryWrapper<Student> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("sid",1);
        Student s = studentDao.selectOne(queryWrapper);
        return s;
    }

}
